import request from '@/utils/request'

// 查询个人账户列表
export function listPrivateaccount(query) {
  return request({
    url: '/module/privateaccount/list',
    method: 'get',
    params: query
  })
}

// 查询个人账户详细
export function getPrivateaccount(id) {
  return request({
    url: '/module/privateaccount/' + id,
    method: 'get'
  })
}

// 新增个人账户
export function addPrivateaccount(data) {
  return request({
    url: '/module/privateaccount',
    method: 'post',
    data: data
  })
}

// 修改个人账户
export function updatePrivateaccount(data) {
  return request({
    url: '/module/privateaccount',
    method: 'put',
    data: data
  })
}

// 删除个人账户
export function delPrivateaccount(id) {
  return request({
    url: '/module/privateaccount/' + id,
    method: 'delete'
  })
}

// 导出个人账户
export function exportPrivateaccount(query) {
  return request({
    url: '/module/privateaccount/export',
    method: 'get',
    params: query
  })
}